import Vue from 'vue'
import Vuex from 'vuex'

import good from './modules/good'
import cart from './modules/cart'

Vue.use(Vuex)

const debug = process.env.NODE_ENV !== 'production'

export default function () {
    const store = new Vuex.Store({
        modules: {
            good,
            cart
        },
        strict: debug
    });
    return store
}